import os
PATH = os.path.dirname(os.path.abspath(__file__))
LOG_DIR = "/var/log/beacon/"
APPLOG_DIR = "/var/log/app_beacon/"
TEMP_DIR = os.path.join(PATH, 'temp')
DICT_FILE = os.path.join("/home/hadoop/udf_data/python/user_track", 'seg_dict.txt')
CLF_FILE = os.path.join(PATH, 'train/clf.pkl')
APP_PLACE_CLF_FILE = os.path.join(PATH, 'train/app_clf.pkl')

if not os.path.isdir(TEMP_DIR) :
    os.makedirs(TEMP_DIR)

APP_ACTION_TYPE_ID = {"v_lmlist":0, "v_lm":1, "v_place":2, "search":3, "comment":4, "v_guide":5, "v_glist":6, "v_hotel":7}

#/home/hadoop/udf_data/python/user_track
product_action_outputDir="output/%s/product_action.out"
hive_track_search="output/%s/track_search.tmp"
user_action_product_outputDir="output/%s/user_action_product.out"